package com.hunt.model.app;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ApkUpload implements Serializable {
    private String appName;
    private String appVersion;
    private String updateDescription;
    private Date updateDate;

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getUpdateDescription() {
        return updateDescription;
    }

    public void setUpdateDescription(String updateDescription) {
        this.updateDescription = updateDescription;
    }

    public String getUpdateDate() {
        String date_time_fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(updateDate);
        return date_time_fmt;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}
